package cn.yuanqiao.activiti.service.impl;

import cn.yuanqiao.activiti.domain.ActConForm;
import cn.yuanqiao.activiti.mapper.ActConFormMapper;
import cn.yuanqiao.activiti.service.IActConFormService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * conFormService业务层处理
 * 
 * @author lyk
 * @date 2023-06-29
 */
@Service
public class ActConFormServiceImpl implements IActConFormService
{
    @Autowired
    private ActConFormMapper actConFormMapper;

    /**
     * 查询conForm
     * 
     * @param deployId conForm主键
     * @return conForm
     */
    @Override
    public ActConForm selectActConFormByDeployId(String deployId)
    {
        return actConFormMapper.selectActConFormByDeployId(deployId);
    }

    /**
     * 查询conForm列表
     * 
     * @param actConForm conForm
     * @return conForm
     */
    @Override
    public List<ActConForm> selectActConFormList(ActConForm actConForm)
    {
        return actConFormMapper.selectActConFormList(actConForm);
    }

    /**
     * 新增conForm
     * 
     * @param actConForm conForm
     * @return 结果
     */
    @Override
    public int insertActConForm(ActConForm actConForm)
    {
        return actConFormMapper.insertActConForm(actConForm);
    }

    /**
     * 修改conForm
     * 
     * @param actConForm conForm
     * @return 结果
     */
    @Override
    public int updateActConForm(ActConForm actConForm)
    {
        return actConFormMapper.updateActConForm(actConForm);
    }

    /**
     * 批量删除conForm
     * 
     * @param deployIds 需要删除的conForm主键
     * @return 结果
     */
    @Override
    public int deleteActConFormByDeployIds(String[] deployIds)
    {
        return actConFormMapper.deleteActConFormByDeployIds(deployIds);
    }

    /**
     * 删除conForm信息
     * 
     * @param deployId conForm主键
     * @return 结果
     */
    @Override
    public int deleteActConFormByDeployId(String deployId)
    {
        return actConFormMapper.deleteActConFormByDeployId(deployId);
    }

    @Override
    public String selectFormCodeByFormId(String formId) {
        return actConFormMapper.selectFormCodeByFormId(formId);
    }

    @Override
    public String getFormCodeByBussinessKey(String bussinessKey,String tenantCode) {
        return actConFormMapper.getFormCodeByBussinessKey(bussinessKey,tenantCode);
    }
}
